package com.itboye.ihomebank.adapter;

import java.util.List;

import android.content.Context;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.bean.BeiFenKeyBean;
import com.itboye.ihomebank.bean.KeyBean;
import com.itboye.ihomebank.support.commonadapter.MutiplyCommonAdapter;
import com.itboye.ihomebank.support.commonadapter.ViewHolder;
/**
 * 备份钥匙列表
 *
 */
public class BeiFenKeyAdapter extends MutiplyCommonAdapter<BeiFenKeyBean>{
	int position;
	List<BeiFenKeyBean> keyArray;
	public BeiFenKeyAdapter(Context context, List<BeiFenKeyBean> datas, int... layoutId) {
		super(context, datas, layoutId);
		keyArray = datas;
	}

	@Override
	public int getItemViewType(int position) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void getItemPosition(int position) {
		this.position = position;
		
	}

	@Override
	public void convert(ViewHolder holder, BeiFenKeyBean t, int type, int position) {
		holder.setText(R.id.my_key_name, t.getLockAlilas());
		holder.setText(R.id.my_key_type, t.getKeyId());
		holder.setVisible(R.id.item_my_zhuangtai, false);
		
	}

}
